package com.indiv.java.web.sx.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.indiv.java.web.sx.access.service.TestService;

@Controller
public class TestController {
	
	@Autowired
	private TestService testService;
	
	@RequestMapping(value = "/test", method = RequestMethod.GET)
	public String printHello(ModelMap model) {
		model.addAttribute("message", testService.getWelcomeMessage());

		return "hello";
	}
	
}
